package com.sheep.classroompie.service;

import com.sheep.classroompie.entity.Student;
import com.sheep.classroompie.repository.StudentRepository;
import jakarta.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService{
  @Autowired
  StudentRepository studentRepository;
  @Override
  public Student login(Student student) {
    return studentRepository.login(student);
  }

  @Override
  public Integer register(Student student) {
    return studentRepository.register(student);
  }

  @Override
  public Boolean uploadAvatar(Student student) {
    return studentRepository.uploadAvatar(student);
  }

  @Override
  public void changePassword(Student student) {
    studentRepository.changePassword(student);
  }
}
